package batframework.code.util;

public abstract class StringUtils
{
	/**
	 * Checks if a string is empty
	 * @param str 
	 * @return 
	 */
	public static boolean isEmpty(String str)
	{
		return str == null || str.equals("");
	}
	
	/**
	 * The first letters to UpperCase
	 * @param str
	 * @return
	 */
	public static String firstToUpperCase(String str)
	{
		return (String.valueOf(str.charAt(0))).toUpperCase().concat(str.substring(1));
	}
	
	/**
	 * The first letters to LowerCase
	 * @author bmyues
	 * @param str
	 * @return
	 */
	public static String firstToLowerCase(String str)
	{
		return (String.valueOf(str.charAt(0))).toLowerCase().concat(str.substring(1));
	}
}
